Silver Platform

TPT supports the test execution on Silver, a simulation tool of the company QTronic.

A special license option is required for the Silver Platform.

To use TPT with Silver you have to have:

Silver Project Setup

To test Silver Projects with TPT, you have to add a test driver module (the TPT VM) to the Silver Project. A new module has to be included, which can be found at<tpt-install-dir>\tptplugins\silver\tpt32_vm.dll.

The module requires two parameters:

  1. The path to the compiled test case in the TPTVM format (it can be found in the corresponding test data directory as testcase.tvm).
  2. The path to the TPTBIN result file where all recorded data shall be stored for the subsequent automatic assessment (also in the corresponding test data directory as testcase.tptbin).

For simple configuration and automatic test execution, it is recommended to use Silver environmental variables, for example TPTVM, SCENFILE, RECFILE:

Silver environmental variables

These variables can be handled by TPT to correctly configure the Silver project for each test execution.

Silver Platform Setup

To use TPT with Silver, you have to create and configure a Silver Platform in TPT. First, add a new Silver Platform.

Create a Silver platform

Then, configure the platform.

For information on how to use System Constants in the platform configuration, see Declarations - Constants and System Constants.

Silver platform configuration

Step Size

The desired Macro Step width (corresponding to the silver project).

Timeout

The simulation timeout.

History Size

The number of steps the TPT VM should be able to look back in time during stimulation.

Mapping

A mapping, for example imported from an A2L file, that contains a Rename mapping flavor. Then TPT will use the external names provided by this mapping flavor in Silver. If no mapping is given, TPT assumes that Silver and TPT variable names are equal.

Silver only recognizes the Rename mapping flavor.

Working Directory

The working directory for silver. All relative paths in Silver are relative to this directory.

Silver Startup Command 

To call the Silver simulation tool. This command is executed for each test case. Use the following arguments:

Order Element Comment
1 Path to the Silver executable:
<silver-install-dir>\bin\silver.exe
or
<silver-install-dir>\bin\silversim.exe
Mandatory
2 FLAG to start the automatic simulation:

-c
Mandatory

(Can be removed for debugging)
3 Log file:

-l <file>
Optional

(Will use default log file otherwise)
4 Simulation Timeout:

-E ${tpt.timeout}
Optional

(Will use project setting otherwise)
5 Step Size:

-d ${tpt.stepsize.ms}
Optional

(Will use project setting otherwise)
6 Path to the Silver project, for example:

${tpt.tptfile.dir}\silver-platform\lights_control_1_simple.sil
Mandatory
7 Environmental variable for the compiled test case:

scenfile=${tpt.scenario.tvmfile}
Mandatory
8 Environmental variable for the recorded data of the test case: recfile=${tpt.scenario.tptbinfile} Mandatory
9 Path to the silver node: tptvm=<tpt-install-dir>\tptplugins\silver Mandatory
The order of the arguments 6,7 and 8 is arbitrary.

Once the Silver platform is configured, an interface needs to be defined either using the Declaration Editor or by importing the interface from an A2L file (Tools | Import | A2L).

Outputs from TPT will be always declared as “Modify” variables in Silver to enable Read-Write-semantics.

Once the Silver Platform and the interface are ready, you can execute test cases in TPT. For each test case, a Silver instance is started.

Place the TPT node in a way that all its input and output dependencies are fulfilled. That is, all nodes that provide input to TPT have to be executed before the TPT node. Only those nodes that modify TPT outputs in the same cycle should be placed behind. In most cases, it is suitable to place the TPT node at the end.

Enter the additional command -l test.log to make Silver create a log for each test file.

The Silver platform is only supported for SUT synchronous test execution.

Silver Platform Additional Notes

Disable Silver GUI